package com.lqk.adapter.classadapter;

/**
 * @author lqk
 * @date 2021/12/2 15:09
 *
 * 适配器类
 */
public class VoltageAdapter extends Voltage220V implements IVoltage5V {
    @Override
    public int output5V() {
        // 获取到 220V 电压
        int srcV = output220V();
        int dstV = srcV / 44;   // 转成5V
        return dstV;
    }
}
